package com.sgffsg.learn.lib.test

/**
 * @author: lmk
 * @date: 2024/4/26
 * @desc:
 */
class InlineTest {

    fun normalMethod(block: () -> Unit) {
        block()
    }

    inline fun inlineMethod(block: () -> Unit) {
        block()
    }
}

fun main() {
    println("Hello")
    val test = InlineTest()
    test.normalMethod {
        println("normalMethod---")
    }
    test.inlineMethod {
        println("inlineMethod---")
    }
}